package com.stormrage.edu.serv.exam.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stormrage.edu.dao.exam.ExmAnswerDao;
import com.stormrage.edu.serv.exam.ExmAnswerServ;
import com.stormrage.entity.exam.ExmAnswer;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: ExmExamServImpl.java
 * @Package com.stormrage.edu.serv.exam.impl
 * @Description: 考试试题 Service
 * @author www.stormragetech.com
 * @date 2016年5月16日
 * @version V1.0
 */
@Service
public class ExmAnswerServImpl implements ExmAnswerServ {

	private static final Logger logger = LoggerFactory.getLogger(ExmAnswerServImpl.class);

	@Autowired
	private ExmAnswerDao exmAnswerDao;

	@Override
	public List<ExmAnswer> queryListByExamId(final Integer arg0) throws StormrageTechException {

		logger.debug(" 【 Serv 】-【 ExmAnswerServ 】-【 queryListByExamId 】-【 STARTED 】");

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("examId", arg0);

		List<ExmAnswer> array = exmAnswerDao.queryListByExamId(map);

		logger.debug(" 【 Serv 】-【 ExmAnswerServ 】-【 queryListByExamId 】-【 COMPLETED 】");
		return array;

	}

}
